package net.oschina.app.common;

public class PagingInfo {
	public static final int DEFAULT_PAGE_SIZE = 30;
	public static final int INVALID_CATALOG = -1;
	public int pageIndex;
	public int pageSize  = DEFAULT_PAGE_SIZE;
	public int catalog = INVALID_CATALOG;
	
	
	public PagingInfo(int pageIndex){
		this.pageIndex = pageIndex;
	}
	
	public PagingInfo(int pageIndex, int catalog){
		this(pageIndex,DEFAULT_PAGE_SIZE, catalog);
	}
	
	public PagingInfo(int pageIndex, int pageSize, int catalog) {
		super();
		this.pageIndex = pageIndex;
		this.pageSize = pageSize;
		this.catalog = catalog;
	}
	
	
	
}
